package _5上下转型;

public class Animal {
	// 属性
		String name;
		int age;
		
		public Animal()
		{
			name = "一种动物";
			System.out.println("Animal() 被调用了");
		}
		
		// 方法
		public void eat()
		{
			System.out.println(name + "吃东西");
		}
		
		
		public void sleep()
		{
			System.out.println(name + "zzzzzz");
		}
		
		public void sing()
		{
			System.out.println(name + "在唱歌~~~~");
		}
}
